<%@page contentType="text/html;charset=utf-8" pageEncoding="UTF-8" %>
<%@page import="org.ipo.mm.web.util.pager.AbstractPager, org.ipo.mm.web.util.ConstantManager, java.util.Collection, org.ipo.mm.web.util.security.SecurityManager, java.util.Vector" %>
<%@taglib prefix="l" uri="http://struts.apache.org/tags-logic" %>
<%@taglib prefix="b" uri="http://struts.apache.org/tags-bean" %>
<%@taglib prefix="h" uri="http://struts.apache.org/tags-html"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
        <link href="<%= request.getContextPath()%>/css/style.css" rel="stylesheet" type="text/css" />
        <!-- calendar -->
         <script type="text/javascript" src="<%= request.getContextPath()%>/js/jscal2.js"></script>
        <script type="text/javascript" src="<%= request.getContextPath()%>/js/lang/en.js"></script>
        <link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>/css/jscal2.css" />
        <link rel="stylesheet" type="text/css" href="<%= request.getContextPath()%>/css/border-radius.css" />
        <!--   <link rel="stylesheet" type="text/css" href="src/css/win2k/win2k.css" />-->
        <!-- calendar end -->
 </head>
<body>
<div id="actionForm">
<fieldset>
<h1><b:message key="meetings_action_action"/></h1>
 <h:form action="/protected/action_crud?&method=${param['method']}">
 <div id="actionInput">     
<input type="text" name="actionId" class="displayNone" value="<%=request.getParameter("aid")%>"/>
<table border="0">
<tr>
	<td><b:message key="meetings_action_name"/></td>
	<td><h:text property="actionName" styleClass="required" maxlength="512" size="100"/> </td>
</tr>
<tr>
	<td></td>
    <td><span class="error" ><h:errors property="actionName"/></span></td>
</tr>
<tr>
	<td><b:message key="meetings_action_action" /></td>
	<td><h:text property="actionDesc" styleClass="required" maxlength="512" size="100"/></td>
</tr>
<tr>
	<td></td>
	<td><span class="error" ><h:errors property="actionDesc"/></span></td>
</tr>
<tr>
	<td><b:message key="meetings_action_due_date"/></td>
	<td><h:text styleId="actionDueDate" styleClass="required" property="actionDueDate"/>
	<button type="button" id="actionDueDateButton">...</button>
	<script type="text/javascript">//<![CDATA[
                            var cal = Calendar.setup({
                                onSelect: function(cal) { cal.hide() },
                                selectionType : Calendar.SEL_SINGLE
                            });
                            cal.manageFields("actionDueDateButton", "actionDueDate", "%d/%m/%Y");
                            //]]></script>
	</td>
</tr>
<tr>
	<td></td>
	<td><span class="error" ><h:errors property="actionDueDate"/></span></td>
</tr>
<tr>
	<td><b:message key="meetings_action_status"/></td>
	<td><h:select property="actionStatus" styleClass="required">
		<h:option value="PENDING"><b:message key="actions_pending" /></h:option>
		<h:option value="FINISHED"><b:message key="actions_finished" /></h:option>
		</h:select>
	</td>
</tr>
</table>
<c:if test="${param['method'] == 'showCreateActionsForm'}">
	<!--<h:submit property="operation"><b:message key="gen_create"/></h:submit>-->
<h:submit property="operation"><b:message key="meetings_action_add"/></h:submit>
	</c:if>
<c:if test="${param['method'] == 'showUpdateActionsForm'}">
<!--<input type="submit" value="Update action"/>-->
	<h:submit property="operation"><b:message key="actions_update"/></h:submit>
	<!--<h:submit property="operation"><b:message key="gen_update"/></h:submit>-->
</c:if>
<h:cancel><b:message key="gen_cancel"/></h:cancel>
</div>
</h:form>
</fieldset>
</div>
</body>
